import dayjs from 'dayjs';
import { downLoad, request } from '../../../request';

// 获取列表
export function getbrokenKnifeList(params: any) {
  return request({
    url: '/mes/broken-knife/list',
    params
  });
}

/** 导出 */
export function exportbrokenKnifeList(params: any) {
  return downLoad({
    url: '/mes/broken-knife/export',
    method: 'POST',
    data: params,
    fileName: `钻孔断刀记录${dayjs().format('YYYY-MM-DD HH:mm:ss')}导出.xlsx`
  });
}
